<template>
	<view class="content">
	{{lst}}
	</view>
</template>

<script setup>
import { ref } from "vue"
	let url="https://unidemo.dcloud.net.cn/api/news"
	let lst=ref({})
	async function getNews(){
		lst.value=await uni.$get(url)
		console.log(lst)
	}
	getNews()
</script>

<style>
	
</style>